package com.study.java8.char06;
// housekeeping/Spoon.java

public class Spoon {
    static int i = 1;

    static {
        System.out.println("静态代码块执行" + i);
        i = 47;
    }

    public Spoon() {
        System.out.println("构造代码块执行" + i);
    }

    public static void main(String[] args) {
        new Spoon();
      /*  静态代码块执行1
        构造代码块执行47*/
    }
}

